-- GENERATED SPELL FOR [Titanium Thunderer] --


function spell0_28965(pUnit, Event) --@Deadly Throw,n/a--
pUnit:FullCastSpellOnTarget(52885,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28965', 3280, 1)
end

function spell1_28965(pUnit, Event) --@Deadly Throw,n/a--
pUnit:FullCastSpellOnTarget(59180,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28965', 3336, 1)
end

function spell2_28965(pUnit, Event) --@Deflection,Self--
pUnit:FullCastSpellOnTarget(52879,pUnit)
pUnit:RegisterEvent('Sorts_28965', 6286, 1)
end

function spell3_28965(pUnit, Event) --@Deflection,Self--
pUnit:FullCastSpellOnTarget(59181,pUnit)
pUnit:RegisterEvent('Sorts_28965', 6268, 1)
end

function spell4_28965(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(52904,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28965', 1500, 1)
end

function spell5_28965(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(59179,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28965', 1500, 1)
end

function Sorts_28965(pUnit, Event)
local choix_sorts_28965 = math.random(0, 5)
if choix_sorts_28965 == 0 then
pUnit:RegisterEvent('spell0_28965', 1, 1)
end
if choix_sorts_28965 == 1 then
pUnit:RegisterEvent('spell1_28965', 1, 1)
end
if choix_sorts_28965 == 2 then
pUnit:RegisterEvent('spell2_28965', 1, 1)
end
if choix_sorts_28965 == 3 then
pUnit:RegisterEvent('spell3_28965', 1, 1)
end
if choix_sorts_28965 == 4 then
pUnit:RegisterEvent('spell4_28965', 1, 1)
end
if choix_sorts_28965 == 5 then
pUnit:RegisterEvent('spell5_28965', 1, 1)
end
end

function mob28965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28965', math.random(1500, 3000), 1)
end

function mob28965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28965, 1, 'mob28965_Action')
RegisterUnitEvent(28965, 2, 'mob28965_Leave')
RegisterUnitEvent(28965, 3, 'mob28965_Kill')
RegisterUnitEvent(28965, 4, 'mob28965_Die')
